# 指定基于 Node.js 的 Docker 镜像
FROM node:16.20.2
 
# 设置工作目录
WORKDIR /usr/src/app

COPY . .

RUN npm config set registry https://registry.npmmirror.com/

RUN npm config set strict-ssl false

RUN npm install

# 暴露服务器端口号
EXPOSE 3000
 
# 运行应用程序
CMD [ "npm","run", "server" ]